#include <REGX52.H>
#include "type.h"
#include "LCD.h"
#include "LCD1602.h"

extern time alarm;
extern time clock;

unsigned char showalarm = 0;


// 时钟按键1实现功能
void clock_Key1(){
	showalarm = ~showalarm;
	if(showalarm){
		LCD_WriteCommand(0x01);
		LCD_Show_h_min(&alarm);
	}
	else{
		LCD_Show_h_min_s(&clock);
	}
}

// 时钟按键2实现功能
void clock_Key2(){

}

